package com.finalBlog.validator;

import com.finalBlog.common.Dic;
import com.jfinal.core.Controller;

/**
 * finalBlog
 *	
 * 类/接口信息描述:
 *
 * @author dengxc
 *
 */
public class LoginValidator extends JsonRenderValidator {

	protected void validate(Controller c) {
		validateCaptcha("captcha", Dic.jsonMsg,"验证码错误");
		validateRequiredString("username", Dic.jsonMsg, "用户名不能为空！");
		validateRequiredString("password", Dic.jsonMsg, "密码不能为空！");
		validateRequiredString("captcha", Dic.jsonMsg, "验证码不能为空！");
	}

}
